package com.lmabbe.core.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 部门表DTO
 *
 * @author lmabbe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "部门表")
public class SysOrgDTO implements Serializable {

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String label;

    /**
     * 父ID
     */
    @ApiModelProperty(value = "父ID")
    private Long parentId;

    /**
     * 树结构
     */
    @ApiModelProperty(value = "树结构")
    private List<Long> treePath;

    /**
     * 排序，越小越靠前
     */
    @ApiModelProperty(value = "排序，越小越靠前")
    private Integer sortValue;

}